export default {
  // 主要项目表格配置
  mainProjectData: {
    title: '主要项目',
    tip: '限填5项，其余项目在“其他成果”填写',
    data: [],
    isDetail: true,
    maxRows: 5,
    columns: [
      {
        prop: 'projectName',
        label: '项目名称',
        type: 'textarea',
        edit: true,
        rules: [{ required: false }],
        attr: {
          width: '500px'
        }
      },
      {
        prop: 'projectType',
        label: '项目分类',
        type: 'textarea',
        edit: true,
        rules: [{ required: false }]
      },
      {
        prop: 'projectLevel',
        type: 'textarea',
        label: '项目级别',
        edit: true,
        rules: [{ required: false }]
      },
      {
        prop: 'projectMoney',
        type: 'textarea',
        label: '项目经费（万元）',
        edit: true,
        rules: [{ required: false }],
        attr: {
          width: '100px'
        }
      },
      {
        prop: 'startDate',
        label: '起止时间',
        type: 'textarea',
        format: 'xxxx-xx-xx',
        edit: true,
        rules: [{ required: false }],
        attr: {
          width: '230px'
        }
      },
      {
        prop: 'sort',
        label: '本人排序/总数',
        type: 'textarea',
        edit: true,
        rules: [{ required: false }],
        attr: {
          width: '110px'
        }
      }
    ]
  },
  // 主要著作表格配置
  mainBookData: {
    title: '主要著作',
    tip: '限填5项，其余著作在“其他成果”填写',
    data: [],
    isDetail: true,
    maxRows: 5,
    columns: [
      {
        prop: 'authorInfo',
        label: '著者',
        type: 'textarea',
        edit: true,
        rules: [{ required: false }]
      },
      {
        prop: 'bookName',
        label: '著作名称',
        type: 'textarea',
        edit: true,
        rules: [{ required: false }],
        attr: {
          width: '500px'
        }
      },
      {
        prop: 'publishInfo',
        label: '出版社名称、出版时间',
        type: 'textarea',
        edit: true,
        rules: [{ required: false }]
      },
      {
        prop: 'remark',
        label: '备注',
        type: 'textarea',
        edit: true,
        rules: [{ required: false }],
        attr: {
          width: '130px'
        }
      }
    ]
  },
  // 主要获奖表格配置
  prizeWinningData: {
    title: '主要获奖',
    tip: '限填5项，其余获奖在“其他成果”填写',
    data: [],
    isDetail: true,
    maxRows: 5,
    columns: [
      {
        prop: 'name',
        label: '成果名称',
        type: 'textarea',
        edit: true,
        rules: [{ required: false }]
        // attr: {
        //   width: '400px'
        // }
      },
      {
        prop: 'level',
        label: '获奖类别',
        type: 'textarea',
        edit: true,
        rules: [{ required: false }],
        attr: {
          width: '200px'
        }
      },
      {
        prop: 'grade',
        label: '获奖等级',
        edit: true,
        type: 'select',
        options: [
          { label: '特等奖', value: '特等奖' },
          { label: '一等奖', value: '一等奖' },
          { label: '二等奖', value: '二等奖' },
          { label: '三等奖', value: '三等奖' },
          { label: '其他', value: '其他' }
        ],
        rules: [{ required: false }],
        attr: {
          width: '200px'
        }
      },
      {
        prop: 'date',
        label: '获奖时间',
        format: 'xxxx-xx-xx',
        type: 'textarea',
        edit: true,
        rules: [{ required: false }],
        attr: {
          width: '110px'
        }
      },
      {
        prop: 'sort',
        label: '本人排序/总数',
        type: 'textarea',
        edit: true,
        rules: [{ required: false }],
        attr: {
          width: '110px'
        }
      }
    ]
  },
  // 发明专利表格配置
  patentData: {
    title: '发明专利',
    tip: '限填5项，其余专利在“其他成果”填写',
    data: [],
    isDetail: true,
    maxRows: 5,
    columns: [
      {
        prop: 'name',
        label: '专利名称',
        type: 'textarea',
        edit: true,
        rules: [{ required: false }]
      },
      {
        prop: 'type',
        label: '类型',
        type: 'textarea',
        edit: true,
        rules: [{ required: false }],
        attr: {
          width: '150px'
        }
      },
      {
        prop: 'date',
        format: 'xxxx-xx-xx',
        label: '批准时间',
        type: 'textarea',
        edit: true,
        rules: [{ required: false }],
        attr: {
          width: '110px'
        }
      },
      {
        prop: 'organization',
        label: '批准机构',
        type: 'textarea',
        edit: true,
        rules: [{ required: false }],
        attr: {
          width: '150px'
        }
      },
      {
        prop: 'patentNumber',
        label: '专利号',
        type: 'textarea',
        edit: true,
        rules: [{ required: false }],
        attr: {
          width: '150px'
        }
      },
      {
        prop: 'sort',
        label: '本人排序/总数',
        type: 'textarea',
        edit: true,
        rules: [{ required: false }],
        attr: {
          width: '110px'
        }
      }
    ]
  },
  // 标准规范表格配置
  standardData: {
    title: '标准规范',
    tip: '限填3项，其余标准规范在“其他成果”填写',
    data: [],
    isDetail: true,
    maxRows: 3,
    columns: [
      {
        prop: 'name',
        label: '名称',
        type: 'textarea',
        edit: true,
        rules: [{ required: false }]
        // attr: {
        //   width: '500px'
        // }
      },
      {
        prop: 'level',
        label: '等级',
        type: 'textarea',
        edit: true,
        rules: [{ required: false }],
        attr: {
          width: '300px'
        }
      },
      {
        prop: 'organization',
        label: '发布机构',
        type: 'textarea',
        edit: true,
        rules: [{ required: false }],
        attr: {
          width: '300px'
        }
      },
      {
        prop: 'date',
        format: 'xxxx-xx-xx',
        label: '时间',
        type: 'textarea',
        edit: true,
        rules: [{ required: false }],
        attr: {
          width: '110px'
        }
      }
    ]
  },
  // 主要论文表格配置
  paperData: {
    title: '主要论文',
    tip: '限填10篇，其余论文在“其他成果”填写',
    data: [],
    isDetail: true,
    maxRows: 10,
    columns: [
      {
        prop: 'authorName',
        label: '作者信息(按照排序填写所有作者姓名)',
        type: 'textarea',
        edit: true,
        rules: [{ required: false }],
        attr: {
          width: '200px'
        }
      },
      {
        prop: 'authorType',
        label: '是否一作或通讯',
        edit: true,
        type: 'select',
        options: [
          { label: '第一作者', value: '第一作者' },
          { label: '通讯作者', value: '通讯作者' },
          { label: '第一作者/通讯作者', value: '第一作者/通讯作者' },
          { label: '其他', value: '其他' }
        ],
        rules: [{ required: false }],
        attr: {
          width: '150px'
        }
      },
      {
        prop: 'title',
        type: 'textarea',
        label: '论文题目',
        edit: true,
        rules: [{ required: false }]
        // attr: {
        //   width: '390px'
        // }
      },
      {
        prop: 'detail',
        label: '期刊与出版信息(期刊名称，发表年卷期号，页码)',
        type: 'textarea',
        edit: true,
        rules: [{ required: false }],
        attr: {
          width: '280px'
        }
      },
      {
        prop: 'grading1',
        label: '期刊分级(中科院分区)',
        edit: true,
        type: 'select',
        options: [
          { label: '一区', value: '一区' },
          { label: '二区', value: '二区' },
          { label: '三区', value: '三区' },
          { label: '其他', value: '其他' }
        ],
        rules: [{ required: false }],
        attr: {
          width: '150px'
        }
      },
      {
        prop: 'grading2',
        label: '期刊分级(JCR分区)',
        edit: true,
        type: 'select',
        options: [
          { label: 'Q1区', value: 'Q1区' },
          { label: 'Q2区', value: 'Q2区' },
          { label: 'Q3区', value: 'Q3区' },
          { label: '其他', value: '其他' }
        ],
        rules: [{ required: false }],
        attr: {
          width: '120px'
        }
      },
      {
        prop: 'divisor',
        label: '影响因子',
        type: 'textarea',
        edit: true,
        rules: [{ required: false }],
        attr: {
          width: '70px'
        }
      }
    ]
  },
  // 列表表格配置
  tableColumnOptions: {
    管理员: [
      {
        label: '姓名',
        prop: 'name'
      },
      {
        label: '出生年月',
        prop: 'birth_time'
      },
      {
        label: '拟聘单位',
        prop: 'apply_college'
      },
      {
        label: '拟聘岗位',
        prop: 'apply_post'
      },
      {
        label: '操作',
        width: '300',
        columnType: true,
        soltName: 'operation'
      }
    ],
    超级管理员: [
      {
        label: '姓名',
        prop: 'name'
      },
      {
        label: '出生年月',
        prop: 'birth_time'
      },
      {
        label: '拟聘单位',
        prop: 'apply_college'
      },
      {
        label: '拟聘岗位',
        prop: 'apply_post'
      },
      {
        label: '操作',
        width: '300',
        columnType: true,
        soltName: 'operation'
      }
    ]
  }
}
